package de.koller.aframe.util.misc;

import de.koller.oceanFramework.math.RVec2;

public class ADirection2D {
	
	public float direction = 0;
	
	public RVec2 createVec( float length ) {
		RVec2 v = new RVec2();
		v.setTo( direction, length );
		return v;
	}
	
	public void add( float value ) {
		direction += value;
	}
	
	public float get() {
		return direction;
	}
	
	public void setDegree( float direction ) {
		this.direction = (float)Math.toRadians( direction );
	}
	
}
